package fun.yyds.common.util;

import com.baomidou.mybatisplus.core.metadata.IPage;

import lombok.Data;

import java.util.List;

@Data
public class PageUtil<T> {

    private List<T> list;
    private Long count;


    public PageUtil(IPage<T> page) {
        this.list = page.getRecords();
        this.count = page.getTotal();
    }




}
